﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/MasterPage/Site1.Master" AutoEventWireup="true" CodeBehind="NewEmployee.aspx.cs" Inherits="TARS.AdminCP.NewEmployee" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadSkinManager ID="Metro" runat="server" Skin="Hay" />
        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="true" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" Height="370px" HorizontalAlign="NotSet" Width="701px">
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            </telerik:RadAjaxManager>
            <table style="width: 100%;">
                <tr>
                    <td class="auto-style1" colspan="2" style="text-align: center">
                        <asp:Label ID="Label13" runat="server" Text="Detail Employee"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label5" runat="server" Text="Branches :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cbbBraches" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label1" runat="server" Text="First Name :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtFName" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtFName" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style4" style="text-align: right">
                        <asp:Label ID="Label2" runat="server" Text="Last Name :"></asp:Label>
                    </td>
                    <td class="auto-style2">
                        <telerik:RadTextBox ID="txtLName" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtLName" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style4" style="text-align: right">
                        <asp:Label ID="Label7" runat="server" Text="Address :"></asp:Label>
                    </td>
                    <td class="auto-style2">
                        <telerik:RadTextBox ID="txtAddress" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtAddress" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label8" runat="server" Text="City :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtCity" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCity" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label9" runat="server" Text="State :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtState" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtState" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label14" runat="server" Text="Email :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtEmail" runat="server" Skin="Metro" Width="200px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEmail" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label15" runat="server" Text="Phone :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadMaskedTextBox ID="txtPhone" runat="server" Mask="###-###-####" Skin="Metro" Width="200px">
                        </telerik:RadMaskedTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label10" runat="server" Text="ZipCode :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadMaskedTextBox ID="txtZipCode" runat="server" Mask="#####-####" Skin="Metro" Width="200px">
                        </telerik:RadMaskedTextBox>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtZipCode" ErrorMessage="Must be Integer" MaximumValue="9999999" MinimumValue="1"></asp:RangeValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtZipCode" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label11" runat="server" Text="SSN :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadMaskedTextBox ID="txtSSN" runat="server" Mask="###########" Skin="Metro" Width="200px">
                        </telerik:RadMaskedTextBox>
                        <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtSSN" ErrorMessage="Must be Integer" MaximumValue="9999999" MinimumValue="1"></asp:RangeValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtSSN" ErrorMessage="(Must not Empty)" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label6" runat="server" Text="UserType :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cbbUsertype" runat="server" Style="margin-bottom: 222" Skin="Metro" Text="Employee" Width="200px">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Selected="True" Text="Employee" Value="Employee" />
                                <telerik:RadComboBoxItem runat="server" Text="Manager" Value="Manager" />
                                <telerik:RadComboBoxItem runat="server" Text="Admin" Value="Admin" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label12" runat="server" Text="Date of Birth :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="txtDOB" runat="server" Culture="en-US" MinDate="1940-01-01" SelectedDate="1940-01-01" Skin="Metro" Width="200px">
                            <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" Skin="Metro">
                            </Calendar>
                            <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" DisplayText="1/1/1940" LabelWidth="40%" SelectedDate="1940-01-01" value="1/1/1940">
                            </DateInput>
                            <DatePopupButton HoverImageUrl="" ImageUrl="" />
                        </telerik:RadDatePicker>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label3" runat="server" Text="UserName :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtUserName" runat="server" Skin="Metro" Width="200px" ReadOnly="True">
                        </telerik:RadTextBox>
                        
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">
                        <asp:Label ID="Label4" runat="server" Text="Password :"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtPassword" runat="server" Skin="Metro" Width="200px" ReadOnly="True">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3" style="text-align: right">&nbsp;</td>
                    <td>
                        <telerik:RadButton ID="btnAutoCreate" runat="server" Skin="Metro" AutoPostBack="true" Text="Auto UserName" OnClick="btnAutoCreate_Click">
                        </telerik:RadButton>

                    </td>
                </tr>

                <tr>
                    <td class="auto-style3" style="text-align: right">&nbsp;</td>
                    <td>
                        <asp:Label ID="lblConguralation" runat="server" ForeColor="LightGreen" Text="Congrualation...New User has been added!!" Visible="False"></asp:Label>
                    </td>
                </tr>
            </table>
        </telerik:RadAjaxPanel>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
</asp:Content>
